import { httpDelete, httpGet, httpPost, httpPut } from '@/http'
import { services } from '@/config'

export const getPage = data => httpPost(`${services.personnelService}fyprojectmemberupdate/page`, data)

export const save = data => httpPost(`${services.personnelService}fyprojectmemberupdate`, data)

export const load = id => httpGet(`${services.personnelService}fyprojectmemberupdate/${id}`)

export const create = params => httpGet(`${services.personnelService}fyprojectmemberupdate/create`, params)

export const update = data => httpPut(`${services.personnelService}fyprojectmemberupdate`, data)

export const batchDelete = ids =>
  httpDelete(`${services.personnelService}fyprojectmemberupdate/batchDelete`, ids, null, false)
